package com.ymttest.database.mapping;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface WXToken2Mapper {
    @Select("select * from wxtoken where type=#{type}")
    List<Map> selectWxtokenByType(@Param("type")Integer type);
    
    @Select("select * from wxtoken where type=#{type} and apptype=#{apptype} ")
    List<Map> selectNewWxtokenByType(Map m);
    @Select("select * from wxtoken where type=#{type} and apptype=#{apptype} and userid=#{userid} ")
    List<Map> selectNewWxtokenByTypeAndUid(Map m);
}